package lab02.test04;

public class Staff {
    public Staff(){

    }
    public Staff(int id,String name,double bonus,double salary){
        this.id=id;
        this.name=name;
        this.bonus=bonus;
        this.salary=salary;
    }
    public void setInfo(int id,String name,double bonus,double salary){
        this.id=id;
        this.name=name;
        this.bonus=bonus;
        this.salary=salary;
    }
    public void printInfo(){
        System.out.println("id:"+id+" name:"+name+" bonus:"+bonus+" salary:"+salary);
    }
    public double getTotalsalary(){
        return bonus+salary;
    }
    private int id;
    private String name;
    private double bonus;
    private double salary;
}

